import request from '@/utils/request'

// 查询巡护记录列表
export function listPatrolRecord(query) {
  return request({
    url: '/frontierCommand/patrolRecord/list',
    method: 'get',
    params: query
  })
}

// 查询巡护记录详细
export function getPatrolRecord(id) {
  return request({
    url: '/frontierCommand/patrolRecord/' + id,
    method: 'get'
  })
}

// 新增巡护记录
export function addPatrolRecord(data) {
  return request({
    url: '/frontierCommand/patrolRecord',
    method: 'post',
    data: data
  })
}

// 修改巡护记录
export function updatePatrolRecord(data) {
  return request({
    url: '/frontierCommand/patrolRecord',
    method: 'put',
    data: data
  })
}

// 删除巡护记录
export function delPatrolRecord(id) {
  return request({
    url: '/frontierCommand/patrolRecord/' + id,
    method: 'delete'
  })
}

// 导出巡护记录
export function exportPatrolRecord(query) {
  return request({
    url: '/frontierCommand/patrolRecord/export',
    method: 'get',
    params: query
  })
}